package cn.com.pc.content.domain.authority;

import cn.com.pc.content.domain.Site;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SiteOperatorRepository extends JpaRepository<SiteOperator, Long> {

    boolean existsByOperatorIdAndSiteAndDeleted(Long operatorId, Site site, boolean deleted);

    Page<SiteOperator> findAllBySiteAndDeleted(Site site, boolean deleted, Pageable pageable);
}